package com.nus.iss.ad.model;

public class LoginUserInfo {
	
	public static LoginUserInfo currentUser=null;
	
	private static final String EMPLOYEE_ROLE="employee";
	private static final String DEPTHEAD_ROLE="employeeHead";
	private static final String CLERK_ROLE="clerk";
	private static final String SUPERVISOR_ROLE="supervisor";
	private static final String STOREMANAGER_ROLE="manager";

private boolean isDelegate;
public boolean isDelegate() {
	return isDelegate;
}

public void setDelegate(boolean isDelegate) {
	this.isDelegate = isDelegate;
}

public boolean isDeptDelegate() {
	return deptDelegate;
}

public void setDeptDelegate(boolean deptDelegate) {
	this.deptDelegate = deptDelegate;
}

public String getUsername() {
	return username;
}

public void setUsername(String username) {
	this.username = username;
}

public String getDeptId() {
	return deptId;
}

public void setDeptId(String deptId) {
	this.deptId = deptId;
}

public String getDeptName() {
	return deptName;
}

public void setDeptName(String deptName) {
	this.deptName = deptName;
}

public String getName() {
	return name;
}

public void setName(String name) {
	this.name = name;
}

public String getRole() {
	return role;
}

public void setRole(String role) {
	this.role = role;
}

private boolean deptDelegate;
private String username;
private String deptId;
private String deptName;
private String name;
private String role;

public LoginUserInfo(){
	
}

public boolean isEmployee(){
	return this.role.equals(EMPLOYEE_ROLE);
}

public boolean isDeptHead(){
	return this.role.equals(DEPTHEAD_ROLE);
}

public boolean isClerk(){
	return this.role.equals(CLERK_ROLE);
}

public boolean isSupervisor(){
	return this.role.equals(SUPERVISOR_ROLE);
}

public boolean isStoreManager(){
	return this.role.equals(STOREMANAGER_ROLE);
}
}
